﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.Data
{
    /// <summary>
    /// 主键值监视器
    /// </summary>
    public interface IEntityKeyMonitor
    {
        /// <summary>
        /// 注册事件监听器
        /// </summary>
        /// <typeparam name="TEntity">监视的对象类型</typeparam>
        /// <param name="changeTracker">主键值变更跟踪器</param>
        void AddEventListeners<TEntity>(EntityKeyChangeTracker<TEntity> changeTracker);
    }
}
